#ifndef UTI_TRADESERIES_MQ_H_
#define UTI_TRADESERIES_MQ_H_
#pragma once
#include "sys_config.h"
#include "uti_tradeseries.h"



class TradeSeries_Mq
{
public:

	TradeSeries_Mq(TradeSerInfo* pserinfo, HANDLE* phan);

	TradeSeries_Mq(unsigned int sersize, void (*pcallback_fun)(), HANDLE* phan);

	~TradeSeries_Mq();

	TradeData* GetReadP()
	{
		return (m_pstart + m_index);
	};

	int CheckReadindex();

public:
	TradeSeries* m_pser;


private:

	TradeData* m_pstart;

	unsigned int m_index;

	HANDLE* m_phan_callback;

	unsigned int m_size;

};





#endif